app.controller('eventsController', ['$scope', function ($scope) {
        var collapseIn = "";

        $scope.setCollapse = function(collapseName){  
            collapseIn = collapseName;
        };
        $scope.isCollapsed = function(collapseName){
            return collapseIn === collapseName;
        };
}]);